var row =
	{ 
		init : function()
			{
				this.login = new Ext.form.TextField
		            ({
		                fieldLabel: 'Login',
		                name: 'data[Usuario][login]',
		                allowBlank: false,
		                width: 350
		            });
		        
		        this.senha = new Ext.form.TextField
		            ({
		                fieldLabel: 'Senha',
		                name: 'data[Usuario][senha]',
		                allowBlank: false,
		                width: 350,
						autoCreate:	{tag: 'input', type: 'password'}
		            });
				
				formX.buttons[0].text = 'Login';
				formX.buttons = [formX.buttons[0]];
				
				formX.on('beforeaction', function()
					{
						row.senha.setDisabled(true);
						formX.add
							(
								new Ext.form.Hidden
									({
										name: 'data[Usuario][senha]',
										value: hex_sha1(hex_sha1(row.senha.getValue())+_PHP_.form.hash)
									}),
								new Ext.form.Hidden
									({
										name: 'data[Usuario][tries]',
										value: _PHP_.form.tries
									})
							);
						formX.on('afterlayout', function()
							{
								row.senha.setValue('');
								formX.form.submit();
							});
						formX.doLayout();
					});
				
				formX.keys =
					{
					    key: Ext.EventObject.ENTER,
					    fn: formX.buttons[0].handler
					};
					
				formX.add(this.login, this.senha);
				
				if(_PHP_.form.tries > 2)
				{
					this.captcha =
						{
		                	xtype: 'recaptcha',
							style: 'margin-left:84px; padding:10px',
		                    name: 'recaptcha',
		                    id: 'recaptcha_div',
		                    publickey: '6LfbdAEAAAAAAOZkfQulUC0oMHS6Xc2nJG0EQF7s',
		                    theme: 'white',
		                    lang: 'pt'
		                };
					
					formX.add(this.captcha);
				}
				
				formX.render();
			}
	};